package com.freesky.biz.icbc.service;

import com.freesky.biz.icbc.domain.TAigouActivity;
import com.freesky.biz.icbc.domain.TAigouCategory;
import com.freesky.biz.icbc.domain.TreeCategorySelect;
import com.freesky.common.core.domain.TreeSelect;
import com.freesky.common.core.domain.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IAigouCategoryService {

    public List<TAigouCategory> selectCategoryList(TAigouCategory entity);

    public List<TreeCategorySelect> selectDeptTreeList(TAigouCategory entity);

    public List<TAigouCategory> buildCategoryTree(List<TAigouCategory> entitys);

    public List<TreeCategorySelect> buildCategoryTreeSelect(List<TAigouCategory> entitys);

    public TAigouCategory selectCategoryById(String categoryId);

    public List<TAigouCategory> selectChildrenCategoryById(String categoryId);

    public int selectNormalChildrenCategoryById(String categoryId);

    public boolean hasChildByCategoryId(String categoryId);

    public int insertCategory(TAigouCategory entity);

    public int updateCategory(TAigouCategory entity);

    public int deleteCategoryById(String categoryId);
}
